<?php
namespace Album\Form;
use Zend\Form\Form;
class CategoryForm extends Form
{
	function static createForm()
    {
    	$form = new Form('category');	
    	$form->setAttribute('method', 'post');
        $form->add(array(
            'name' => 'id',
            'type' => 'Hidden',
        ));
        
        $form->add(array(
            'name' => 'title',
            'type' => 'Text',
            'options' => array(
                'label' => 'Title',
            ),
        ));
        
        $form->add(array(
        	'name'=>'parent_id',
        	'type' => 'Zend\Form\Element\Select',
        	'options'=>array(
	        	'value_options'=>array(
        			'0' => 'French',
		            '1' => 'English',
		            '2' => 'Japanese',
		            '3' => 'Chinese',
        		),
        		'id'=>'parent_id',
        		'label' => 'Select Parent',
	        ),
        ));
        
        $form->add(array(
            'name' => 'submit',
            'type' => 'Submit',
            'attributes' => array(
                'value' => 'Go',
                'id' => 'submitbutton',
            ),
        ));
        return $form;
    
    }
}